]> permondes.de Git - Analog_Engine.git/blobdiff - scripts/EP1 10.02 Forced Harmonic Oscillator.LACE
Forced harmonic oscillator
[Analog_Engine.git] / scripts / EP1 10.02 Forced Harmonic Oscillator.LACE
index 6e51b649e26718d59d6c7a30c15aa90f79033d59..c9ea1aca1920dea1d21e9d515c7cc82e7db0fd87 100644 (file)
@@ -1,10 +1,10 @@
 # Forced Damped_Harmonic Oscillator
 # Forced Damped_Harmonic Oscillator
-# x'' + 2*delta*x' + omega.0^2*x = A cos (omega.f t)
+# x'' + 2*delta*x' + omega.0^2*x = b cos (omega t)
 
 
-# generating oscillation with omega.f
-# f'' = -omega.f^2*f
+# generating oscillation with omega
+# f'' = -omega^2*f
 coefficient.1(-1) -> -f0      # amplitude
 coefficient.1(-1) -> -f0      # amplitude
-coefficient.2     -> omega^2
+coefficient.3     -> omega^2
 iintegrate f'' -> -f'
 iintegrate -f' -> f
   IC: -f0
 iintegrate f'' -> -f'
 iintegrate -f' -> f
   IC: -f0
@@ -12,7 +12,7 @@ cmultiply f, omega^2 -> omega^2*f
 invert omega^2*f -> -omega^2*f
 assign -omega^2*f -> f''
 invert f -> -f
 invert omega^2*f -> -omega^2*f
 assign -omega^2*f -> f''
 invert f -> -f
-output f -> y
+output f -> out.y
 
 # forced damped harmonic oscillation
 # x'' = -(2*delta*x' + omega.0^2*x) + A cos (omega.f t)
 
 # forced damped harmonic oscillation
 # x'' = -(2*delta*x' + omega.0^2*x) + A cos (omega.f t)
@@ -30,4 +30,4 @@ cmultiply x, omega.0^2 -> omega.0^2*x
 isum 2*delta*x', omega.0^2*x, -f -> -(2*delta*x'+omega.0^2*x)-f
 assign -(2*delta*x'+omega.0^2*x)-f -> x''
 
 isum 2*delta*x', omega.0^2*x, -f -> -(2*delta*x'+omega.0^2*x)-f
 assign -(2*delta*x'+omega.0^2*x)-f -> x''
 
-output(x) -> x
+output x -> out.x